package com.wzf.sword.test.jvm.size;

import com.wzf.sword.jvm.size.ObjectSizeInstrument;

public class ObjectSizeTester {

    public static void main(String[] args) {
        System.out.println("new A() size=" + ObjectSizeInstrument.size(new A()));
        System.out.println("new B()=" + ObjectSizeInstrument.size(new B()));
        System.out.println("new int[4]=" + ObjectSizeInstrument.size(new int[4]));
        System.out.println("new Integer[4]=" + ObjectSizeInstrument.size(new Integer[4]));
    }
}
